<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>管理员登录-内容管理系统</title>

    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/Public/assets/css/common.css">
    
</head>
<body>

<nav class="navbar navbar-default navbar-fixed-top col-md-10">
    <div class="container-fluid nav_bg">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

            <a class="navbar-brand" href="<?php echo U('File/home_page');?>">首页</a>
            <a class="navbar-brand" href="<?php echo U('Link/index');?>">友情链接</a>


        </div>


        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">尊敬的 <?php echo ($user["email"]); ?><span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo U('Article/index');?>">文章信息</a></li>
                        <li><a href="<?php echo U('Category/index');?>">栏目管理</a></li>
                        <li><a href="<?php echo U('System/information');?>">公司信息</a></li>
                        <li><a href="<?php echo U('System/password_change');?>">修改密码</a></li>
                     
                        <li><a href="<?php echo U('System/clear_cache');?>">清除缓存</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="<?php echo U('User/logout');?>">安全退出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

<div class="container-fluid">
    
    <div class="row">
        <div class="col-md-12">

            <div class="row">
                <div class="col-md-8">
                    <div class="page-header">
                        <h1>系统首页</h1>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-10">
                    <div class="panel panel-default">
                        <div class="panel-heading" align="center">
                            <h2>公司信息</h2>
                        </div>



                        <div class="panel-body" >
                            <?php if(is_array($information)): $i = 0; $__LIST__ = $information;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$i): $mod = ($i % 2 );++$i;?><form class="form-horizontal" role="form" method="post" action="<?php echo U('do_information');?>" >
                                    <input type="hidden" name="id" value="1">
                                    <div class="pageone">
                                        <div class="form-group" >
                                            <label for="site_owner" class="col-sm-2 control-label">网站所有者</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control" name="site_owner" id="site_owner"  placeholder="" value="<?php echo ($i["site_owner"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="company_name" class="col-sm-2 control-label">公司名称</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="company_name" id="company_name" placeholder="" value="<?php echo ($i["company_name"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="site_name" class="col-sm-2 control-label">网站名称</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="site_name" id="site_name" placeholder="" value="<?php echo ($i["site_name"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="keyword" class="col-sm-2 control-label">关键词</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="keyword" id="keyword" placeholder="" value="<?php echo ($i["keyword"]); ?>">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="icp" class="col-sm-2 control-label">ICP备案号</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="icp" id="icp" placeholder="" value="<?php echo ($i["icp"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="copyright_information" class="col-sm-2 control-label">版权信息</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="copyright_information" id="copyright_information" placeholder="" value="<?php echo ($i["copyright_information"]); ?>">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="pagetwo" style="display: none">


                                        <div class="form-group">
                                            <label for="email" class="col-sm-2 control-label">E-mail</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="email" id="email" placeholder="" value="<?php echo ($i["email"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="qq" class="col-sm-2 control-label">QQ</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="qq" id="qq" placeholder="" value="<?php echo ($i["qq"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="phone" class="col-sm-2 control-label">联系电话</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="phone" id="phone" placeholder="" value="<?php echo ($i["phone"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="faxes" class="col-sm-2 control-label">传真</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="faxes" id="faxes" placeholder="" value="<?php echo ($i["faxes"]); ?>">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="sina" class="col-sm-2 control-label">新浪微博</label>
                                            <div class="col-sm-6">
                                                <input type="" class="form-control"name="sina" id="sina" placeholder="" value="<?php echo ($i["sina"]); ?>">
                                            </div>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <div class="col-sm-offset-2 col-sm-10">
                                            <button type="button" class="btn btn-success submit" id="back" disabled>后退</button>
                                            <button type="button" class="btn btn-success submit" id="prev">前进</button>

                                        </div>
                                    </div>

                                </form><?php endforeach; endif; else: echo "" ;endif; ?>




                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>

</div>

<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="/Public/bootstrap/js/bootstrap.min.js"></script>


    <script>
        $(function () {
            $("#prev").click(function () {
                if($("#prev").text()=="提交"){
                    $(".form-horizontal").submit();
                }
                $(".pageone").hide();
                $(".pagetwo").show();
                $("#back").prop("disabled",false);
                $("#prev").text("提交");

            })
            $("#back").click(function () {
                $(".pageone").show();
                $(".pagetwo").hide();
                $("#back").prop("disabled",true);
                $("#prev").text("前进");

            })


        })

    </script>


</body>
</html>